﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfRedis.Models
{
    public class LoginModel : BindableBase
    {
        private string _LoginName="";
        /// <summary>
        /// 登录名
        /// </summary>
        public string LoginName
        {
            get
            {
                return _LoginName;
            }
            set
            {
                _LoginName = value;
                RaisePropertyChanged(nameof(LoginName));
            }
        }

        /// <summary>
        /// 密码
        /// </summary>
        private string _Password;

        public string Password
        {
            get { return _Password; }
            set
            {
                _Password = value;
                RaisePropertyChanged(nameof(Password));
            }
        }
        /// <summary>
        ///  错误信息
        /// </summary>

        private string _ErrorMsg;

        public string ErrorMsg
        {
            get { return _ErrorMsg; }
            set
            {
                _ErrorMsg = value;
                RaisePropertyChanged(nameof(ErrorMsg));
            }
        }
    }
}
